package com.tyrone.gateway.registry;

import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class InstanceInfo {
    /**
     * instance ip.
     */
    private String ip;

    /**
     * instance port.
     */
    private int port;

    /**
     * instance weight.
     */
    private double weight = 1.0D;

    /**
     * instance health status.
     */
    private boolean healthy = true;

    /**
     * If instance is enabled to accept request.
     */
    private boolean enabled = true;

    /**
     * Service information of instance.
     */
    private String serviceName;

}
